# Character statistics

word = input()

sta = {}

for i in word:
    sta[i] = word.count(i)

for k in sorted(sta):
    if sta[k] == 1:
        print(k, ':', sta[k], 'time', end = ', ')
    else:
        print(k, ':', sta[k], 'times', end = ', ')